/*******************************************************************************
*  file    : htmldelegate.hpp
*  created : 30.08.2011
*  author  : Slyshyk Oleksiy (alex312@meta.ua)
*******************************************************************************/

#ifndef HTMLDELEGATE_HPP
#define HTMLDELEGATE_HPP

#include <QStyledItemDelegate>
#include <QString>

class HTMLDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    void  paint        ( QPainter * painter,
                         const QStyleOptionViewItem & option,
                         const QModelIndex & index ) const;
    QSize sizeHint     ( const QStyleOptionViewItem & option,
                         const QModelIndex & index ) const;
    void  setStyleSheet(const QString&);
private:
    QString css_;
};

#endif // HTMLDELEGATE_HPP
